import { createApp } from 'vue'
import App from './App.vue'
const app = createApp(App)

import router from "./router";
app.use(router)

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn' //组件汉化(选择性)
app.use(ElementPlus, {locale: zhCn,})

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.mount("#app")
